package edu.um.variable;

public class Variable {

  protected String name;

  protected final VariableType type;

  protected Object value = null;

  protected boolean used;

  public Variable(String name, VariableType type) {
    super();
    this.name = name;
    this.type = type;
    this.used = false;
  }

  public String getName() {
    return name;
  }

  public VariableType getType() {
    return type;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Object getValue() {
    return value;
  }

  public void setValue(Object value) {
    this.value = value;
  }

  public boolean isUsed() {
    return used;
  }

  public void setUsed(boolean used) {
    this.used = used;
  }
}
